
<div class="layui-fluid">
  <div class="layui-row layui-col-space15">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md6">
        <div class="layui-card">
          <div class="layui-card-header">商户信息</div>
          <div class="layui-card-body layui-text">
            <script type="text/html" template lay-url="/api/mch/get">
            <table class="layui-table">
              <colgroup>
                <col width="100">
                <col>
              </colgroup>
              <tbody>
              <tr>
                <td>商户ID:</td>
                <td class="leftT">{{d.data.mchId}}</td>
              </tr>
              <tr>
                <td>商户名称:</td>
                <td class="leftT">{{d.data.name}}</td>
              </tr>
              <tr>
                <td>商户类型:</td>
                <td class="leftT">
                  {{# if(d.data.kind === 1){ }} <span style="color: orangered">平台账户</span> {{#  } }}
                  {{# if(d.data.kind === 2){ }} <span style="color: blue">私有账户</span> {{#  } }}
              </tr>
              <tr>
                <td>手机号:</td>
                <td class="leftT">{{d.data.mobile}}</td>
              </tr>
              </tbody>
            </table>
            </script>
            </div>
          </div>
      </div>
      <div class="layui-col-md6">
        <div class="layui-card">
          <div class="layui-card-header">账户信息</div>
          <div class="layui-card-body">
            <div class="layui-carousel layadmin-carousel layadmin-backlog" >
              <div carousel-item>
                <ul class="layui-row layui-col-space10">
                  <script type="text/html" template lay-url="/api/account/get">
                  <li class="layui-col-xs6">
                    <a lay-href="" class="layadmin-backlog-body">
                      <h3>账户金额</h3>
                      <p><cite>{{ d.data.balance/100 }}</cite> 元</p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a lay-href="" class="layadmin-backlog-body">
                      <h3>可结算金额</h3>
                      <p><cite>{{ d.data.settAmount/100 }}</cite> 元</p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a lay-href="" class="layadmin-backlog-body">
                      <h3>保证金</h3>
                      <p><cite>{{ d.data.securityMoney/100 }}</cite> 元</p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a lay-href="" class="layadmin-backlog-body">
                      <h3>冻结金额</h3>
                      <p><cite>{{ d.data.unBalance/100 }}</cite> 元</p>
                    </a>
                  </li>
                  </script>
                </ul>
                <ul class="layui-row layui-col-space10">
                  <script type="text/html" template lay-url="/api/account/get">
                  <li class="layui-col-xs6">
                    <a lay-href="" class="layadmin-backlog-body">
                      <h3>总收益</h3>
                      <p><cite>{{ d.data.totalIncome/100 }}</cite> 元</p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a lay-href="" class="layadmin-backlog-body">
                      <h3>总支出</h3>
                      <p><cite>{{ d.data.totalExpend/100 }}</cite> 元</p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a lay-href="" class="layadmin-backlog-body">
                      <h3>今日收益</h3>
                      <p><cite>{{ d.data.todayIncome/100 }}</cite> 元</p>
                    </a>
                  </li>
                  <li class="layui-col-xs6">
                    <a lay-href="" class="layadmin-backlog-body">
                      <h3>今日支出</h3>
                      <p><cite>{{ d.data.todayExpend/100 }}</cite> 元</p>
                    </a>
                  </li>
                  </script>
                </ul>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header">今日订单</div>
          <div class="layui-card-body">

            <div class="layui-carousel layadmin-carousel layadmin-dataview" data-anim="fade" lay-filter="LAY-index-dataview">
              <div carousel-item id="LAY-index-dataview">
                <div><i class="layui-icon layui-icon-loading1 layadmin-loading"></i></div>
                <div></div>
                <div></div>
              </div>
            </div>

          </div>
        </div>
      </div>
    </div>


  </div>
</div>


<script>
//加载 controller 目录下的对应模块
/*

  小贴士：
    这里 console 模块对应 的 console.js 并不会重复加载，
    然而该页面的视图则是重新插入到容器，那如何保证能重新来控制视图？有两种方式：
      1): 借助 layui.factory 方法获取 console 模块的工厂（回调函数）给 layui.use
      2): 直接在 layui.use 方法的回调中书写业务代码，即:
          layui.use('console', function(){ 
            //同 console.js 中的 layui.define 回调中的代码 
          });
          
  这里我们采用的是方式1。其它很多视图中采用的其实都是方式2，因为更简单些，也减少了一个请求数。
  
*/
layui.use('console', layui.factory('console'));
</script>

